﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Utilities;
using StockCommon.Calendar;

namespace CommonUI
{
    public partial class VacationInputControl : UserControl
    {
        public VacationInputControl()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DateTime dt = dateTimePicker1.Value;
            if (String.IsNullOrWhiteSpace(textBox2.Text))
                return;
            dt=DateUtils.getDateOnly(dt);
            CalenderHelper.setFixVacation(dt, textBox2.Text);
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            CalenderHelper.parseNotWorkDay(textBox1.Lines);
        }
    }
}
